﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuickApp
{
    public class QACommand : IQACommand
    {
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public bool Execute()
        {
            if (command != null)
                return command();
            return false;
        }

        private Func<bool> command;

        public Func<bool> Command
        {
            get { return command; }
            set { command = value; }
        }
    }
}
